package com.xbongbong.saas.domain.dao;

import com.xbongbong.pro.domain.entity.UpdateDataEntity;
import com.xbongbong.saas.domain.entity.ext.CreditTemporaryLimitEntityExt;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface CreditTemporaryLimitDao {

    Integer insert(CreditTemporaryLimitEntityExt entity);

    void insertBatch(List<CreditTemporaryLimitEntityExt> list);

    CreditTemporaryLimitEntityExt getByKey(@Param("key") Long key, @Param("corpid") String corpid );

    Integer update(CreditTemporaryLimitEntityExt entity);

    Integer updateTime(@Param("updateTime") Long updateTime, @Param("id") Long id, @Param("corpid") String corpid);

    Integer updateBatch(@Param("list") List<UpdateDataEntity> list, @Param("corpid") String corpid);

    List<CreditTemporaryLimitEntityExt> findEntities(@Param("param") Map<String, Object> param);

    Integer getEntitiesCount(@Param("param") Map<String, Object> param);
}